<template>
  <div class="page-header col-xs-offset-2 col-xs-8">
    <h2>Vue路由测试</h2>
    <button @click="test1">←后退</button>
    <button @click="test2">前进→</button>
  </div>
</template>

<script>
  export default {
    name:'Header',
    methods: {
      test1(){
        this.$router.back()
      },
      test2(){
        this.$router.forward()
      }
    },
  }
</script>